%%% Doc: titlesec.pdf
\usepackage{titletoc}

\IfPackageLoaded{titletoc}{

\dottedcontents{section}[ left ]{ above }
   { label width }{ leader width }

\titlecontents{section}[left]{above}
   {before with label}{before without label}
   {filler and page}[after]

\titlecontents{chapter}
   [0pt]
   {\addvspace{1pc} \itshape}%
   {\contentsmargin{0pt} \bfseries
   \makebox[0pt][r]{\huge\thecontentslabel\enspace}\large}
   {\contentsmargin{0pt} \large}
   {\quad\thepage}
   [\addvspace{.5pc}]

\titlecontents{chapter}
   [3pc]
   {\addvspace{1.5pc} \filcenter}
   {CHAPTER  \thecontentslabel\\*[.2pc] \huge}
   {\huge}
   {}   %  That  is,  without  page  number
   [\addvspace{.5pc}]

\titlecontents{section}
   [1.5em]
   {}
   {\contentslabel{2.3em}}
   {\hspace*{-2.3em}}
   {\titlerule*[1pc]{.}\contentspage}

\contentsmargin{2.55em}
\dottedcontents{section}[1.5em]{}{2.3em}{1pc}
\dottedcontents{subsection}[3.8em]{}{3.2em}{1pc}

} % end: \IfPackageLoaded{titletoc}
